 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Login Para H6 educacional</title>
</h:head>
<h:body>
    <!-- campos login e senha required="true" - mudar -->
    <h:form id="form">
        <p:panel header="Acesso no Sistema H6 Educacional" style="margin-bottom:10px;">
            <h:panelGrid columns="2">
                <h:outputText value="Antiga Senha"></h:outputText>
                <p:password id ="Antiga_Senha" value="#{senhaManager.funcionario.senha}" />
                <h:outputText value="Nova Senha "></h:outputText>
                <p:password id="Nova_Senha" value="#{senhaManager.novaSenha1}" />
                <h:outputText value="Confirmação Senha "></h:outputText>
                <p:password id="Confirmacao_Senha" value="#{senhaManager.novaSenha2}" />
                <p:commandButton value="Confirmar" action="#{senhaManager.validaMudaSenha()}" ajax="false" update="dialog" oncomplete="dialog.show()" />
                <p:commandButton value="Cancelar" action="#{senhaManager.voltar()}" ajax="false" update="dialog" oncomplete="dialog.show()" />
            </h:panelGrid>
            <h:messages id="msgErro" style="color: red"/>
        </p:panel>
    </h:form>
    
</h:body>
</html>